package com.example.demo.dao;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IUser {

    //添加用户
    int insertUser(User user);
    //删除用户
    int deleteUser(int id);
    //更新用户
    int updateUser(User user);
    //查询所用用户信息
    List<User> selectAllUser();
    //查询指定用户信息
    User selectUser(int id);
}
